package com.addplus.townmall.server.api.mapper.town;

import com.addplus.townmall.server.api.model.town.DistributionOrderPersonalStroe;
import com.addplus.townmall.server.api.utils.BaseAddMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 分销订单个人店铺佣金表 Mapper 接口
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-11-21
 */
@Deprecated
public interface DistributionOrderPersonalStroeMapper extends BaseAddMapper<DistributionOrderPersonalStroe> {


    @Select("select * from distribution_order_personal_stroe a where a.order_id=#{orderId} and a.order_item_id =#{orderItemsId} and order_type = #{orderType} and a.brokerage_status=0;")
    DistributionOrderPersonalStroe getDistribution(@Param("orderId") Integer orderId, @Param("orderType") Integer orderType, @Param("orderItemsId") Integer orderItemsId);

}
